package com.example.test.infrastructre.config;

import org.apache.ibatis.annotations.Mapper;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Controller;
import org.springframework.stereotype.Repository;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

@Component  //   @Resource Resource
@Service  //   @Resource
@RestController // content-type: application/json
@ResponseBody // content-type: application/json
@Controller

@RequestMapping // route
@Mapper // mybitis
@Configuration

public class RedisConfig {
   @GetMapping
   @PostMapping

   @Transactional
    public int hashCode() {
        return super.hashCode();
    }

    @Transactional
    public int insert_update_dalete(Double ff) {
        return super.hashCode();
    }
}


